package com.doyens.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 学生
 */
@Data
@TableName("sch_student")
@ApiModel(value = "学生实体类")
public class Student implements Serializable {

    @ApiModelProperty(value = "学生主键id")
    @TableId(value = "student_id",type = IdType.AUTO)
    private Integer studentId;

    @ApiModelProperty(value = "班级id")
    private Integer classId;

    @ApiModelProperty(value = "招生老师id")
    private Integer recruiterId;

    @ApiModelProperty(value = "班主任id")
    private Integer classTeacherId;

    @ApiModelProperty(value = "姓名")
    private String sname;

    @ApiModelProperty(value = "年龄")
    private int age;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "地址")
    private String addr;

    @ApiModelProperty(value = "身份证号码")
    private String idcard;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "学生状态")
    private int status;

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private LocalDateTime updateTime;

}
